<?php
	include("includes/connect.php");

	$name			= $_POST["name"];
	$email			= $_POST["email"];
	$tel				= $_POST["tel"];
	$datepicker	= $_POST["datepicker"];

	//echo $name, $email, $tel, $datepicker;

	if (isset ($name)) {
		mysql_query("INSERT INTO tblProfile(name, email, tel, birthdate) VALUES ('$name', '$email', '$tel', '$datepicker')") or die(mysql_error($connect));
		echo "seccess";
	} else {
		//mysql_error($connect);
		echo "Error from filename:addProfile.php";
	}
?>
